package wjl.project.dubbotestshop.DesignMode;

import org.springframework.stereotype.Component;

@Component
public class AliPay implements PayHandler {
    public static final String NAME = "AliPay";
    @Override
    public String payWithQCodeForScan() {
        return "请使用支付宝扫码支付";
    }
    @Override
    public String payWithScanQCode() {
        return "请打开支付宝展示付款码";
    }
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("生成支付宝支付实现类");
        PayFactory.RegisterPayMethod(NAME,this);
    }
}
